#include <iostream>
#include <unistd.h>
#include "timerManager.h"
using namespace std;

void test(const std::string& str)
{
    std::cout << str << std::endl;
}

int main(void)
{
    TimerManager timer;
    timer.schedule(1000, 1, [](){
        std::cout << "hello world" << std::endl;
    });

    timer.schedule(1500, 1, test, "lalala");

    while(timer.GetTimerSize())
    {
        sleep(1);
        timer.UpDate();
    }

    return 0;
}